import { createApp } from 'vue'
import { start, registerMicroApps } from 'qiankun';
import App from './App.vue'

createApp(App).mount('#app')

registerMicroApps([
  {
    name: 'home',
    entry: '//localhost:5173/iframe?page=home',
    container: '#container',
    activeRule: '/123',
  },
  {
    name: 'apple',
    entry: '//localhost:5173/iframe?page=apple',
    container: '#container',
    activeRule: '/456',
  },
  {
    name: 'gdds',
    entry: 'https://localhost:8080/gdds/web/iframe?page=fund',
    container: '#container',
    activeRule: '/789',
  }
]);
// 启动 qiankun
start();
